<?php
//=========================
//Vuong Van Binh
//Wanbin@vietnambiz.com
//=========================
include ADMIN_INCLUDE_DIR."/header.php";
include '../sendmail/class.phpmailer.php';
send_mail();
?>
<div class="container_l">
		<div class="title_user"><img src="images/icon1.gif" />Gửi Mail tới thành viên</div>
		<div class="table_user">
			<div class="table_user_in2">
			<?php 
					show_error(); 
					show_success(); 
			?>
				<fieldset>
				<form action="" method="post">
					<div class="lineaddnew">
						<div class="lineform">
							<div class="divlabel">Email: <font color="#FF0000">*</font></div>
							<div class="divform"><input type="text" name="email" value="<?php if($_GET["email"]){ echo htmlentities_utf8($_GET["email"]); }else{ echo htmlentities_utf8($_POST["email"]); } ?>"/></div>
						</div>
						
						<div class="lineform">
							<div class="divlabel">Tiêu đề: <font color="#FF0000">*</font></div>
							<div class="divform"><input type="text" name="subject" value="<?php echo htmlentities_utf8($_POST["subject"]); ?>"/></div>
						</div>
						
						<div class="lineform">
							<div class="divlabel">Nội dung: <font color="#FF0000">*</font></div>
							<div class="divform"><textarea name="content" id="content"><?php echo $_POST["content"]; ?></textarea></div>
						</div>
						
						
						
						<div class="spacer1"><span></span></div>
					</div>
					<div class="spacer1"><span></span></div>
				</fieldset>
				
				<div class="linesubmit">
					<input type="hidden" name="sendmail" value="okie" />
					<input type="submit" name="sendmail" value="Gửi mail" class="button" />
					<input type="submit" name="exit" value="Gửi & Thoát" class="button" />
				</div>
			</form>
				
			</div>
		</div>
	</div>
<script language="javascript" type="text/javascript">
    /*
    ['Source','-','Save','NewPage','Preview','-','Templates'],
    ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
    ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
    '/',
    ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
    ['Link','Unlink','Anchor'],
    ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
    '/',
    ['Styles','Format','Font','FontSize'],
    ['TextColor','BGColor'],
    ['Maximize', 'ShowBlocks','-','About']
     */
    $(document).ready(function (){
        CKEDITOR.config.resize_enabled = false;
        CKEDITOR.config.width = '480';
        CKEDITOR.config.height = 300;
        CKEDITOR.replace( 'content',
        {
            toolbar :
                [[ 'Maximize', '-','Format','Font','FontSize','-','TextColor','BGColor','-','Bold','Italic','Underline','Strike','-','NumberedList','BulletedList','-','Outdent','Indent','Blockquote','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock', '-','Image','Table','-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ]]
        });

    });
</script>
<?php
include "inc/right.php"; 
include ADMIN_INCLUDE_DIR."/footer.php"; 
?>